<?php
if(count($url) > 0) {
  $controller = $url[0];
  $action = $url[1];
  $ident = $url[2];
} else { // root
  $controller = 'pages';
  $action = 'all';
}
?>